import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constants'

// 传入1234 返回文字
const fn = (value: IllnessTime) => {
  return timeOptions.find((item) => item.value === value)?.label
}

// 传入01 返回就诊过 未就诊
const fn2 = (value: 0 | 1) => {
  return flagOptions.find((item) => item.value === value)?.label
}

export { fn, fn2 }
